/* 搜索模块 */
.search-index {
    /* 开启felx布局 */
    display: flex;
    /* 使用固定定位 */
    position: fixed;
    top: 0;
    /* 以下两句代码为了让移动端在pc上居中 */
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    /* 固定的盒子以浏览器可视窗口为主，需要设置一个宽度 */
    width: 100%;
    height: 44px;
    /* 定死网页最大和最小宽度 */
    min-width: 320px;
    max-width: 540px;
    /* background-color: pink; */
    justify-content: space-between;
    background-color: #f6f6f6;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    z-index: 999;
}

/* 搜索框效果 */
.search {
    /* 右侧固定左侧自适应 */
    flex: 1;
    height: 26px;
    position: relative;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 6px 10px;
    /* 设置这样的高度，字体整体偏下 会把边框算进去 */
    line-height: 24px;
    font-size: 12px;
    color: #666;
    padding-left: 25px;
    /* 设置阴影 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);

}

/* 设置搜索 */
.search::before {
    content: '';
    display: block;
    position: absolute;
    top: 6px;
    left: 6px;
    height: 15px;
    width: 15px;
    background: url(../images/sprite.png) no-repeat -60px -280px;
    background-size: 104px auto;

}

/* 用户模块 */
.user {
    width: 44px;
    height: 44px;
    font-size: 12px;
    text-align: center;
    color: #2eaae0;
}

/* 利用伪元素 头像 */
.user::before {
    content: '';
    display: block;
    width: 25px;
    height: 25px;
    /* 直接将背景属性连写 */
    background: url(../images/sprite.png) no-repeat -59px -194px;
    /* 整个精灵图宽缩小一倍 */
    background-size: 104px auto;
    margin: 4px auto -2px;
}

/* 焦点图 */
.focus {
    margin-top: 44px;
}

.focus img {
    width: 100%;
}

.local_nav {
    height: 64px;
    /* background-color: skyblue; */
    margin: 3px 4px;
    border-radius: 8px;
}

/* 必须要给亲爹 */
.local_nav ul {
    display: flex;
}

/* 平均分成5等分 */
.local_nav li {
    flex: 1;
}

/* 景点导航 */
.local_nav a {
    display: flex;
    /* 默认主轴时x  将主轴设置为y */
    flex-direction: column;
    font-size: 12px;
    /* 侧轴居中对齐--单行 */
    align-items: center;
}

/* 利用属性器筛选 */
.local_nav li [class^='nav_icon'] {
    width: 32px;
    height: 32px;
    /* flex中不会出现外边距合并问题 */
    margin-top: 8px;
    background-color: gray;
    background: url(../images/localnav_bg.png) no-repeat 0 0;
    background-size: 32px auto;
}

.local_nav li .nav_icon2 {
    background: url(../images/localnav_bg.png) no-repeat 0 -32px;
    background-size: 32px auto;
}

.local_nav li .nav_icon3 {
    background: url(../images/localnav_bg.png) no-repeat 0 -64px;
    background-size: 32px auto;
}

.local_nav li .nav_icon4 {
    background: url(../images/localnav_bg.png) no-repeat 0 -96px;
    background-size: 32px auto;
}

.local_nav li .nav_icon5 {
    background: url(../images/localnav_bg.png) no-repeat 0 -128px;
    background-size: 32px auto;
}

/* 主导航部分 */
nav {
    border-radius: 8px;
    margin: 0 4px 3px;
    /* 给的nav圆角，里面的div没有圆角，隐藏掉溢出部分 */
    overflow: hidden;
}

.nav_common {
    height: 88px;
    display: flex;
    background-color: pink;
}

.nav_common .nav_items {
    /* 将nav_common里面的nav_items都平均分 */
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 导航栏盒子颜色渐变--线性*/
.nav_common:nth-child(1) {
    /* 背景颜色必须添加浏览器私有前缀 */
    background: -webkit-linear-gradient(left, #ff6c52, #ff9c44);
}

.nav_common:nth-child(2) {
    background: -webkit-linear-gradient(left, #4391f1, #48b2ee);
}

.nav_common:nth-child(3) {
    background: -webkit-linear-gradient(left, #29b4a4, #61c358);
}

.nav_items a {
    /* 平均分 */
    flex: 1;
    line-height: 44px;
    text-align: center;
    color: #fff;
    font-size: 14px;
    /* 给一个文字阴影 */
    text-shadow: 1px 1px rgba(0, 0, 0, .2);
}

.nav_items a:nth-child(1) {
    border-bottom: 1px solid #fff;
}

/*nav_items 第一盒子里面的去除外边框 */
.nav_items:nth-child(1) a {
    border: 0;
    background: url(../images/hotel.png) no-repeat;
    /* 位置靠地段对齐然后水平居中 */
    background-position: bottom center;
    background-size: 121px auto;
}

.nav_common:nth-child(2) {
    margin: 3px 0;
}

/* 给nav_items前两个设置一个外边框 */
.nav_items:nth-child(-n+2) {
    border-right: 1px solid #fff;
}

.subnav_entry {
    border-radius: 8px;
    background-color: #fff;
    margin: 0 4px;
    display: flex;
    /* 发现是个li都在一行上显示--使用强制换行 */
    flex-wrap: wrap;
    /* 发现盒子没有换行 盒子没有宽度--设置百分比 */
    padding: 5px 0;
    font-size: 12px;
    box-shadow: 1px 1px rgba(0, 0, 0, .2);
}

.subnav_entry li {
    /* 将弹性布局线程每份占总共的百分之二十相对于父级来说 */
    flex: 20%;

}

/* 整个盒子 */
.subnav_entry a {
    display: flex;
    flex-direction: column;
    /* 让里面的a沿着侧轴居中 */
    align-items: center;
    margin-top: 4px;


}

/* 文字上面的图标 */

.subnav_entry li [class^='subnav_entry_icon'] {
    width: 28px;
    height: 28px;

    background: url(../images/subnav-bg.png) no-repeat 0 0;
    background-size: 28px auto;
}

.subnav_entry li .subnav_entry_icon2 {
    background: url(../images/subnav-bg.png) no-repeat 0 -28px;
    background-size: 28px auto;
}

.subnav_entry li .subnav_entry_icon3 {
    background: url(../images/subnav-bg.png) no-repeat 0 -61px;
    background-size: 28px auto;
}

.subnav_entry li .subnav_entry_icon4 {
    background: url(../images/subnav-bg.png) no-repeat 0 -97px;
    background-size: 28px auto;
}

.subnav_entry li .subnav_entry_icon5 {
    background: url(../images/subnav-bg.png) no-repeat 0 -129px;
    background-size: 28px auto;
}

.subnav_entry li .subnav_entry_icon6 {
    background: url(../images/subnav-bg.png) no-repeat 0 -160px;
    background-size: 28px auto;
}

.subnav_entry li .subnav_entry_icon7 {
    background: url(../images/subnav-bg.png) no-repeat 0 -196px;
    background-size: 28px auto;
}

.subnav_entry li .subnav_entry_icon8 {
    background: url(../images/subnav-bg.png) no-repeat 0 -226px;
    background-size: 28px auto;
}

.subnav_entry li .subnav_entry_icon9 {
    background: url(../images/subnav-bg.png) no-repeat 0 -256px;
    background-size: 28px auto;
}

.subnav_entry li .subnav_entry_icon10 {
    background: url(../images/subnav-bg.png) no-repeat 0 -285px;
    background-size: 28px auto;
}

/* 热门活动 */
.sales_box {
    background-color: #fff;
    border-top: 1px solid #ccc;
    margin: 4px;
    border-radius: 8px;
    box-shadow: 1px 1px rgba(0, 0, 0, .2);
    overflow: hidden;
}

.sales_hd {
    height: 44px;
    border-bottom: 1px solid #ccc;
    position: relative;
}

/* 提示搜索引起这个是热门活动--字不要显示 */
.sales_hd h2 {
    text-indent: -999px;
    overflow: hidden;
    position: relative;
}

/* 图片热门活动 */
.sales_hd h2::after {
    width: 79px;
    height: 18px;
    content: '';
    background: url(../images/hot.png) no-repeat 0 -19px;
    background-size: 79px auto;
    position: absolute;
    top: 8px;
    left: 15px;
}

.sales_box .sales_hd a {
    position: absolute;
    right: 5px;
    top: 8px;
    font-size: 12px;
    background: -webkit-linear-gradient(left, #ff636a, #ff7dc1);
    border-radius: 8px;
    padding: 3px 8px;
}

/* 利用旋转 */
.sales_box .sales_hd a::after {
    content: '\e66d';
    font-size: 12px;
    font-family: "iconfont";

}

.row {
    display: flex;
}

.row a {
    flex: 1;
    border-bottom: 1px solid #eee;
}

.row a:nth-child(1) {
    border-right: 1px solid #ccc;
}

.row img {
    width: 100%;
}

.bottom_user {
    border-radius: 8px;
    background-color: #fff;
    margin: 0 4px;
    box-shadow: 1px 1px rgba(0, 0, 0, .2);
}

.bottom_user ul {
    display: flex;
}

.bottom_user li {
    flex: 1;

}

.bottom_user a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bottom_user li [class^='bottom_user_icon'] {
    width: 20px;
    height: 20px;
    background: url(../images/sprite.png) no-repeat -59px -153px;
    background-size: 104px auto;
    font-size: 12px;
}

.bottom_user li .bottom_user_icon2 {
    background: url(../images/sprite.png) no-repeat -59px -173px;
    background-size: 104px auto;

}

.bottom_user li .bottom_user_icon3 {
    background: url(../images/sprite.png) no-repeat -59px -310px;
    background-size: 104px auto;

}